<template>
  <div>
  <h1>{{ msg }}</h1>
  <button @click="count--">count is: {{ count }}</button>
  <router-link :to="jumpRoute" class="index link" active-class="active-link">跳转id为{{jumpRoute.params.id}}商品详情页</router-link>
</div>
</template>
<script>
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  data() {
    return {
      jumpRoute:{
        name:'productDetail',
        params:{id:1}
      },
      count:0
    }
  }
}
</script>
